package com.labot.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.annotations.AccessType;

import com.labot.types.BitacoraEventType;

/**
 * This class represents the basic "user" object in AppFuse that allows for authentication
 * and user management.  It implements Acegi Security's UserDetails interface.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 *         Updated by Dan Kibler (dan@getrolling.com)
 *         Extended to implement Acegi UserDetails interface
 *         by David Carter david@carter.net
 */
@Entity
@Table(name="app_pedidosnoconformesbitacoras")
@AccessType("field")
public class PedidoNoConformeBitacora extends BaseObject implements Serializable {

    private static final long serialVersionUID = -1;
    
    @Column(name="fecha")
    private Date fecha;
    
    @Column(name = "evento", nullable = false, length = 50)
    @Enumerated(EnumType.STRING)
    private BitacoraEventType evento;
    
    @Column(name="descripcion", length= 2048)
    private String descripcion;
    
    @Column(name="usuario")
    private String username;
    
    
    public PedidoNoConformeBitacora() {
    }
    
    

	public Date getFecha() {
		return fecha;
	}



	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}



	public BitacoraEventType getEvento() {
		return evento;
	}



	public void setEvento(BitacoraEventType evento) {
		this.evento = evento;
	}



	public String getDescripcion() {
		return descripcion;
	}



	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}



	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	@Override
	public String toString() {
		return "id: " + this.getId();
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
    
}